﻿@model RonYee.Models.Financial

@{
    ViewBag.Title = "财务详细";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<div class="box_padding">
    <h3><i class="ui-icons"></i>财务详细</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
          <th class="tdName">编号</th>
          <th class="tdName">订单编号</th>
          <th class="tdName">订单价格</th>
          <th class="tdName">财务费用</th>
          <th class="tdName">编辑者</th>
          <th class="tdName">完成时间</th>
        </tr>
        <tr>
            <td class="tdData">
                @Html.DisplayFor(model => model.Id)
            </td>
            <td class="tdData">
                @Html.DisplayFor(model => model.OrderId)
            </td>
            <td class="tdData">
                @Html.DisplayFor(model => model.Total)
            </td>
            <td class="tdData">
                @Html.DisplayFor(model => model.FinancialCost)
            </td>
            <td class="tdData">
                @Html.DisplayFor(model => model.Editor)
            </td>
            <td class="tdData">
                @Html.DisplayFor(model => model.AddTime)
            </td>
        </tr>
        </tbody></table></div>
    </div></div>
    <div class="box_down ui-icons"></div>

    <h3><i class="ui-icons"></i>订单详细</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
          <th class="tdName">编号</th>
          <th class="tdName">提交人</th>
          <th class="tdName">学 号</th>
          <th class="tdName">状 态</th>
          <th class="tdName">联系方式</th>
          <th class="tdName">提交日期</th>
          <th class="tdName">总 价</th>
        </tr>
        @foreach (var item in (IEnumerable<RonYee.Models.Order>)ViewData["order"])
        { 
            <tr>
              <td class="tdData">@item.OrderId</td>
              <td class="tdData">@item.Username</td>
              <td class="tdData">@item.UserNo</td>
              <td class="tdData">
                @Enum.GetName(typeof(RonYee.Models.Enum.OrderState),Convert.ToInt32(item.Status))
              </td>
              <td class="tdData">@item.Phone</td>
              <td class="tdData">@item.OrderDate</td>
              <td class="tdData">@item.Total</td>
            </tr>
        }
        </tbody></table></div>
    </div></div>
    <div class="box_down ui-icons"></div>

    <h3><i class="ui-icons"></i>图书列表</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
          <th class="tdName">编号</th>
          <th class="tdName">ISBN</th>
          <th class="tdName">书名</th>
          <th class="tdName">数量</th>
          <th class="tdName">价格</th>
        </tr>
        @foreach (var item in (IEnumerable<RonYee.Models.OrderDetail>)ViewData["details"])
        { 
            <tr>
              <td class="tdData">
                 @item.OrderId
              </td>
              <td class="tdData">
                 @item.ISBN
              </td>
              <td class="tdData">
                 @item.BookName
              </td>
              <td class="tdData">
                 @item.Quantity
              </td>
              <td class="tdData">
                 @item.UnitPrice
              </td>
            </tr>
        }
        </tbody></table></div>
    </div></div>
    <div class="box_down ui-icons"></div>
</div>

<div class="line_top"></div>
